generate dummy variable stata. There are any references about generate dummy variable stata in here. you can look below.